How do I use require instead of import while still being able to access properties of the variable